import Request from '@/utils/request'

export function permissionDetail() {
    return Request.get(
        'permission/detail'
    )
}

export function permissionList(params) {
    return Request.get(
        'permission/list',
        params
    )
}

export function groupList(params) {
    return Request.get(
        'permission/group/num',
        params
    )
}

export function groupDetail(group_id) {
    return Request.get(
        `permission/group/list/${group_id}`
    )
}

export function groupAdd(params) {
    return Request.post(
        'permission/group/add',
        params
    )
}

export function groupDelete(group_id) {
    return Request.delete(
        `permission/group/edit/${group_id}`,
    )
}

export function groupEdit(group_id,params) {
    return Request.put(
        `permission/group/edit/${group_id}`,
        params
    )
}
